﻿@page
@model _17bang.Pages.Plan.NewModel
@{
    ViewData["Title"] = "发布新目标.一起帮";
}
<style>
    .field-validation-error {
        color: red;
        font-size: 12px;
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

        .field-validation-error::before {
            content: '\f119';
        }
</style>
<form asp-page="/Plan" method="post" style="padding-top:120px">
    <div class="form-group">
        <label><b>标题：（必填）</b></label><br />
        <input type="text" asp-for="Title" placeholder="简明扼要，多个目标请分开发布" class="form-control">
        <span asp-validation-for="Title"></span>
    </div>
    <div class="form-group">
        <label><b>详细说明:</b></label><br />
        <textarea type="text" asp-for="NewUser.SelfDescription" placeholder="补充说明你认为需要补充的其他信息。比如：求温柔/凶狠好心人，最好同城/校....." class="form-control"></textarea>
    </div>
    <div class="form-group">
        <label><b>标签:（必填）</b></label><br />
        <input type="text" asp-for="Label" placeholder="多个标签之间请用空格分开" class="form-control" />
        <span asp-validation-for="Label"></span>
    </div>
    <div class="form-group">
        <label><b>开始执行：（必填）</b></label><br />
        <input asp-for="StartTime" class="form-control" />
    </div>
    <div class="form-group">
        <label><b>目标结束：（必填）</b></label><br />
        <input asp-for="EndTime" class="form-control" />
    </div>
    <div class="form-group">
        <label>
            <a href="/FAQ/Plan"></a>
            <b>（每周）交作业时间：</b>
        </label>
        <table class="table table-bordered">
            <tbody>
                <tr>
                    <th>一</th>
                    <th>二</th>
                    <th>三</th>
                    <th>四</th>
                    <th>五</th>
                    <th>六</th>
                    <th>日</th>
                </tr>
                <tr>
                    <td><input type="checkbox" name="DaysInWeek" value="1" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="2" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="3" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="4" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="5" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="6" checked=""></td>
                    <td><input type="checkbox" name="DaysInWeek" value="7" checked=""></td>
                </tr>
            </tbody>
        </table>
    </div>
    <label><b>每周可请假：</b></label><br />
    <div class="input-group">
        <select asp-for="Day" asp-items="Model.AvailableDays" class="custom-select" id="inputGroupSelect01">
        </select>
        <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect01">天</label>
        </div>
    </div>
    <div class="form-group">
        <label><b>证明：</b></label><br />
        <input type="text" asp-for="Prove" placeholder="证据的文字描述" class="form-control" /><br />
        <input type="text" asp-for="Prove" placeholder="可以访问的网址，详见说明" class="form-control" />
    </div>
    <label><b>好心人最多：</b></label><br />
    <div class="input-group">
        <select asp-for="Person" asp-items="Model.AvailablePeople" class="custom-select" id="inputGroupSelect02">
        </select>
        <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect02">人</label>
        </div>
    </div>
    <label><b>未交作业罚金：（必填）</b></label><br />
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">$</span>
        </div>
        <input type="text" asp-for="NewUser.BangMoney" placeholder="正整数，建议10枚以上" class="form-control" aria-label="Amount (to the nearest dollar)">
        <div class="input-group-append">
            <span class="input-group-text">枚</span>
        </div>
    </div>
    <span asp-validation-for="NewUser.BangMoney"></span>
    <div class="form-inline" style="padding-top:20px">
        <button type="submit" asp-page="/">提交</button>
        <div class="form-group form-check">
            <label class="form-check-label" style="padding:0px 130px 0px 10px">
                <input asp-for="GoOn">继续
            </label>
        </div>
    </div>
</form>

